import 'package:flutter/material.dart';

class CenterDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build

    return Scaffold(appBar: AppBar(title: Text('改变主题颜色'),),
      body: Center(child: Text('themeData 改变主题颜色'),),);
  }
}

//return MaterialApp(
//      title: 'Scaffold',
//      theme: ThemeData(primaryColor: Colors.amber),
//      home: new MyScaffoldDemo(),
//    );